package com.yjha.lzmarathonsys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjha.lzmarathonsys.bean.TbLike;
import com.yjha.lzmarathonsys.utils.PageUtils;
import com.yjha.lzmarathonsys.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 点赞记录表
 *
 * @author æ­å°
 * @email 1971240051@qq.com
 * @date 2025-05-13 15:07:07
 */
public interface TbLikeService extends IService<TbLike> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 点赞
     * @param tbLike
     * @return
     */
    R like(TbLike tbLike, HttpServletRequest request);

    R getLikeCount(String targetId);
}

